﻿<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Script file="TweetCraftOptionsPanel.lua" />
  <Frame name="TweetCraftOptionsPanel">
    <Layers>
      <Layer level="ARTWORK">
        <FontString name="$parentTitle" text="TweetCraft" inherits="GameFontNormalLarge" justifyH="LEFT" justifyV="TOP">
          <Anchors>
            <Anchor point="TOPLEFT">
              <Offset>
                <AbsDimension x="16" y="-16"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
        <FontString name="$parentSubText" text="These options allow you to configure TweetCraft." inherits="GameFontHighlightSmall" nonspacewrap="true" maxLines="3" justifyH="LEFT" justifyV="TOP">
          <Size>
            <AbsDimension y="32" x="0"/>
          </Size>
          <Anchors>
            <Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT">
              <Offset>
                <AbsDimension x="0" y="-8"/>
              </Offset>
            </Anchor>
            <Anchor point="RIGHT">
              <Offset>
                <AbsDimension x="-32" y="0"/>
              </Offset>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <CheckButton name="$parentShowMinimapButton" inherits="InterfaceOptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" relativeTo="$parentSubText" relativePoint="BOTTOMLEFT">
            <Offset>
              <AbsDimension x="-2" y="-8"/>
            </Offset>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self.type = CONTROLTYPE_CHECKBOX;
            self.text = _G[self:GetName().."Text"];
            self.text:SetText("Show Minimap Button");
            self.tooltipText = "Uncheck this box to hide the minimap button.";

            BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
          </OnLoad>
        </Scripts>
      </CheckButton>
    </Frames>
    <Scripts>
      <OnLoad>
        self.name = "TweetCraft"
        self:RegisterEvent("ADDON_LOADED")
      </OnLoad>
      <OnEvent>
        TweetCraftOptionsPanel_Event(self, event, ...)
      </OnEvent>
    </Scripts>
	</Frame>
</Ui>